package com.ziven.common.widget.value;

import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.ziven.easygo.util.ViewHelper;

/**
 * @author Ziven
 */
public final class NullValue extends Value {

    public static final NullValue VALUE = new NullValue();

    private NullValue() {}

    @Override
    protected void takeEffect(@NonNull ViewHelper<? extends View> helper) {
        //Do nothing
    }

    @Override
    public boolean isNullValue() {
        return true;
    }

    @Override
    public Value copy(@NonNull Value v) {
        //Do nothing
        return this;
    }

    @Override
    public boolean equals(@Nullable Object obj) {
        return this == obj;
    }

    @NonNull
    @Override
    public String toString() {
        return "NullValue{}";
    }
}
